import request from '../util/requset';


// 验证码
export const getImageCaptchaApi = async () => {
    return await request('/captcha/imageCaptcha');
}

// login
export const loginApi = async (data) => {
    return await request('/login/in',{method:'POST',data})
}

// login out
export const logoutApi = async () => {
    return await request('/login/out',{method:'POST'})
}

// 注册
export const registerApi = async (data) => {
    return await request('/login/register',{method:'POST',data})
}